define(['form'], function(require, exports, module) {
    function bindForm() {
        $('#js-reply-form').on('submit', function() {
            var data = $(this).formToObject();
            data.content = $.trim(data.content);
            if (!data.content) {
                alert('请填写回复内容');return false;
            }
            $.ajax({
                url: '/Ajax/Hello/addReply',
                type: 'post',
                data: data,
                dataType: 'json',
                success: function(d) {

                }
            });
            return false;
        });
    }
    exports.init = function() {
        bindForm();
    }
});